Added a check for the queue HEAD due time when sending a message

This fixes #5

We must check if the queue head has a message which is due after the
message we are trying to insert.