Handle group context enrollment term properly

Group contexts don't always have an enrollment_term (e.g. Account).