[JENKINS-18804] Added a test to reproduce JENKINS-18804.
[FIXED JENKINS-18804] Fixed NPE on TriggeredBuildSelector when the upstream is removed.
Merge pull request #46 from ikedam/feature/JENKINS-18804_FixNPEonTriggeredBuildSelector

[JENKINS-18804] Fix NPE in TriggeredBuildSelector