Fix #5197. Add check for non-existing jobAd
Merge pull request #5198 from tsarangi/issue5197

Fix #5197. Add check for non-existing jobAd