Metadata validation currently does not pick up mismatched relatedIdentifier and relatedIdentifierType (see SAEON/odp-core#18).
When the type is DOI but the identifier is not, then the doi template filter returns None and so doi.startswith in the _render_related_identifier macro bombs out, producing an internal server error in the MIMS catalog.