LPS-48447 Fix a NoSuchEntryException and 'Documents and Media is temporarily unavailable' error message when checking out/in a document contained in an external repository