Fix potential infinite loop in `roundRobin`

A infinite loop could occur if no workers were up.