[FIXED JENKINS-21310] CCE when a Queue.Task was not a Job

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