[FIXED JENKINS-15924] Prevent exception without any links in job