TRQ-2111. Make a second fix that safeguards against keep_completed_second_time() purging a job that isn't in a completed state.