[FIXED JENKINS-21578] Ensure that ${jobs} is really a Collection<Job>

Untested but probably fixes [JENKINS-21578](https://issues.jenkins-ci.org/browse/JENKINS-21578).