Fixed the bugged course_module_classes template filter.