prevent null ptr when there is no course to show in insCommentsPage