Fixed nil class error when @course_scores was not set by controller.