fix use of course_report_latest when not latest; dashboard when not mooc