Fix remembering of last chat message

Don't count system messages such as room topic change messages
when finding the latest message.