Fix a crash in get_jobs_array(), if the job has disappeared, then we need to make sure we have a valid array before attempting to unlock it.