Fix error in ProducerQueue::isEmpty