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