There was also an unintended side-effect when calling `FileSystem.getFileForPath()` with a path for an Untitled document -- an incorrect `File` entry was being created and orphaned. I've reworked the code to fix this problem _and_ make it more understandable.