NXP-14152: Avoid transaction marked for rollback in case of DocumentSecurityException when adapting a document as a FileSystemItem