Added handling for missing document_type in document view.

Fixes https://github.com/4teamwork/opengever.ai/issues/54