[FIXED JENKINS-18384] 

fix bug introduced by https://github.com/jenkinsci/jenkins/pull/795