Fixed try builds not being scheduled when more than one is pending

Probably the same issue as reported by kaie on #buildbot (builds pending and not scheduled despite idle slave available). I've managed to reproduce it and confirm it's fixed by additional functional testing.