JENKINS-24644 Fixed NPE if a non existing project

JENKINS-24644 Fixed NPE if a non existing project is configured as the initial pipeline job