Fixed analytics counts on instructor dashboard.

LMS-11228

On instructor dashboard analytics the breakdown by gender and education numbers are calculated against the number of users ever enrolled in the course instead of the number of users currently enrolled in the course.
Fixed by adding filter for only active course enrolments. Added couple of unit tests.