Fix content dashboards

Content dashboards don't have a department, so when editing them
dashboard.department is undefined.

Wrap it in a conditional.
Merge pull request #16 from alphagov/fix-content-dashboards

Fix content dashboards