backport change from okeyday repo: fix pqueue2:is_empty/1

if is_empty being O(1) is important, an alternative fix would be to
have out/2 to normalize empty queues.