Fix get_course_table() and course_code issues - refs #7212