MDL-45636 course_rest: changed modcontext to coursecontext