MDL-43483 Chat Avoid some 'critical' messages when using chatd.
MDL-43483 Chat chat_format_message_manually() could return false.
MDL-43483 Chat Avoid race conditions, already done in user_lazy_update().