[FIXED JENKINS-18024] Avoid NPE when checking if reason why in the queue has been changed

[JENKINS-18024](https://issues.jenkins-ci.org/browse/JENKINS-18024)