Update AbstractNodeQueue.java to avoid redundant reads of head in peekNode

Avoid spinning on head when a peek/poll observes a null next but the queue is not empty.
Yes, in general it is not fine, but I am pretty sure that Akka’s particular usage is fine. Sorry for being not 100% clear on that.