Improve error message when modelCourse is not found.