deque: fix check for empty deque in popfront