fix crash if user send message to room with nickname instead of id