Room::addNewMessageEvents: fix possible use of an invalid iterator
Room::addNewMessageEvents: fix possible use of an invalid iterator

Closes #286.

QMatrixClient/libqmatrixclient,Fxrh/libqmatrixclient,QMatrixClient/libqmatrixclient