LPS-51533 Add null check while updating status of jobs.