course_materials: fix 500 error when no sections (fix #2486)
Merge pull request #2489 from Stanford-Online/sef-2486-course-materials-500-no-sections

course_materials: fix 500 error when no sections (fix #2486)