[FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuild() for null before calling resolveProject()
Merge pull request #56 from recampbell/jenkins-20931

[FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuild()...