[fixes #77314146] Cannot run a job with an invalid task.