[FIXED JENKINS-17341] NPE after JENKINS-3265 fix.

Should fix [JENKINS-17341](https://issues.jenkins-ci.org/browse/JENKINS-17341). (Test fails with reported NPE when parent set to 1.507 until patch applied.)