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