[JENKINS-24059] Fixed NullPointerException on missing downstream project

See https://issues.jenkins-ci.org/browse/JENKINS-24059 for details please.