Fix infinite loop when all DNS request slots are in use

This is not the best way to detect this scenario, a better detection mechanism will replace this in the future