Correctly clone the InaccessibleFileEntry in addToWorkingSet
Simplify nextUntitledDocumentPath