Fix crash with ProfileCourseAdapter comparison method violates contract