Squashed commits: [73308b5] [FIXED JENKINS-27549] job loading can be broken by a NPE in a build trigger (cherry picked from commit 4c0d3ac6)