Fix bug in grabbing course enrollments.

LMS-1475