gradle plugin: corrected a logical error in _gradle_does_task_list_need_generating