Changed the error message when attributing a final work to a student that already has one.

related to #500.
Also corrected a combobox that has a list of teacher's department, in the finding person menu (messaging portal).
closes #507