mod/hotpot fix warning about events API in Moodle 2.8