[FIXED JENKINS-18390] -P did not work with -Q

Seems to fix [JENKINS-18390](https://issues.jenkins-ci.org/browse/JENKINS-18390).