Updated deprecated get_context_instance() calls for Moodle 2.6