Fix "NullReferenceException" when trying to get message from empty queue
Merge pull request #286 from letalumil/master

Fix "NullReferenceException" when trying to get message from an empty queue