Explicitly fail when calling getDocumentForPath with an untitled document path, and make createUntitledDocument synchronous