TRQ-2570. Fix a segfault where in some conditions we were setting a value on a job that was already deleted.