Fix crash when using the dev console in a chatroom