Fixed a bug where course filtering didn't work properly if course-type was undefined