[FIXED JENKINS-26160] Ability for manually trigger jobs when these are in folders

This pull request should fix the problem detailed in JENKINS-26160
for loop was added instead of an Iterator.