expensive fetching of course when `if modulestore().has_course(self.course_id):` will do