Added handling for missing document_type in document view.
This field is hidden on a customer installation.