LPS-39805 Fix bug when editing document type metadata