requestqueue: Fix waiting with non-empty queue.