MDL-42465 mod_chat: instantiated message object before declaring properties