Fixed JENKINS-24510

See https://issues.jenkins-ci.org/browse/JENKINS-24510