MDL-46465 mod_chat: assorted coding style fixes