IDE: router: Fix infinite loop when there is no machine available.