Fixing problem with getting job status for job where id is null