TRQ-3000. Fix a segfault when aborting dependent jobs.

There was a case here where we'd delete a job without communicating to the caller that the job
was deleted. This is now fixed.