Fix Issue #5682

Fix the issue: https://issues.jenkins-ci.org/browse/JENKINS-5682

Run run = abstractProject.getLastSuccesfullBuild() should be changed into
Run run = abstractProject.getLastCompletedBuild();