Fixed bug where MessageListener would notify for already read messages