requestqueue: Avoid infinite loop in waitForEarliestDeadline.