[JENKINS-18804] Fix NPE in TriggeredBuildSelector

[JENKINS-18804] (https://issues.jenkins-ci.org/browse/JENKINS-18804)