Reverted a minor change in get_cohort to fix failing test in course_groups

cc @antoviaque