Fixed race condition where seeds would be marked as ended when new pages
were still being added to the queue.