Check there are submitted jobs before calling updateTaskStatus. CAF-352
Merge pull request #4024 from mmascher/checkBeforeUpdateTaskStatus-CAF-352

Check there are submitted jobs before calling updateTaskStatus. CAF-352