[MINOR][PROJECT-INFRA] Check if 'original_head' variable is defined in clean_up at...