Fix content dashboards

Content dashboards don't have a department, so when editing them
dashboard.department is undefined.

Wrap it in a conditional.

[Non-whitespace diff](https://github.com/alphagov/performanceplatform-dashboard-admin/pull/16/files?w=1)