Only skip tasks with zero costs, note previous method had a bug as task_type_sub_pair was always skipped