NPE in instructorCoursesPage #2565

fixes #2516, #2539, #2546 as well