MDL-40913 core_message: replaced the 'remove contact' add_to_log call with an event