Bind a correct self instead of this on getPendingMessages

When a ping package arrives and there are pending notifications for a node, it passes around and undefined this instead of the desired self, causing a crash while updating statistics.