Fix issue on logging empty query deque