TRQ-2638. Correct an infinite loop in the mom's job cleanup code.