don't dequeue the command queue if a message or pmessage is received

If a published message arrives while waiting for a reply to a command,
it will mistakenly shift the queue and consume the command's entry, and
that command's callback will not be called.