Adding try/catch around getDocumentByMetaversalID()