Moved null check outside of job.