MDL-40054 mod_lesson: replaced 'update grade' add_to_log call with an event