JENKINS-20857 - add unit test which recreates NullPointerException if selected build has been deleted