Do not use deprecated get_system_context()

Fixes moodlehq/moodle-local_chatlogs#2
Merge pull request #3 from moodlehq/fix-get_system_context

Do not use deprecated get_system_context()