Fix infinite loop in task_delete

We are done with this loop even if we did not have to delete the job.
Only InvalidRequestErrors should make us repeat.
Merge pull request #308 from guidow/fix_infinite_loop_in_task_delete

Fix infinite loop in task_delete