[FIXED JENKINS-20166] Promoted Build NullPointer when not manual promoti...

Fixing JENKINS-20166 introduced by pull request #28 [JENKINS-8962]