Update get_context instance to context_xxx::instance() as it has been deprecated since Moodle 2.2