When sending bulk email check if course is authorized.
Also the idash_mode property is stored seperately for each course.

LMS-2565
Fixed and added more tests for bulk email.

LMS-2565