fix for when broker returns no messages
Merge pull request #287 from kouk/messagesfix

fix for when broker returns no messages on startup