attempting to fix a bug in email notifications when there's students with multiple course memberships