When selecting departments from Permissions, filter out nulls and the de...

...partment ||||.

The Department can be null for instructor and course permissions, and the department can be |||| for SystemAdmin users (added in another branch).