safe dequeue from empty