Error handling for courses without courseid when exporting to excel.