Do not persist anonymous ids when exporting for all students of a course.

For large courses this causes export to take a long time and to time out.

LMS-2747
Merge pull request #3879 from edx/usman/lms2747-anonymous-ids-collection

Do not persist anonymous ids when exporting for all students of a course.