Add student email to the results spreadsheet   #2582

Fixes for adding student email next to student name in CSV file generation
This sentence is not clear. 
```
/**
 * Returns the given identifier if it is an email of a person in the course and the email is allowed to be displayed. 
 * Returns '-' otherwise.
*/```