LPS-33417 Fix issue when viewing a document in an external CMIS repo