Corrected handling of a job for which getNextTask returns nothing but the job is not complete.
Corrected handling of a job for which getNextTask returns nothing but the job is not complete.

bwkimmel/jdcp,bwkimmel/jdcp