Fix to webinar cron function

Fix to reported bug at https://tracker.moodle.org/browse/CONTRIB-4195