[JENKINS-18074] Fixed unit test by making StubJob.getParent forgiving.
https://ci.jenkins-ci.org/job/jenkins_main_trunk/2545/testReport/junit/hudson.model/DisplayNameListenerTest/testOnCopied/