fix issue when job has no lastBuild