tool/createusers fix use of events_trigger on Moodle >= 2.8