MDL-40061 mod_data: replaced 'templates saved' add_to_log call with an event