[FIXED JENKINS-23315] potential NPE if previous build is still running