Bug 444841 - NPE when creating a new file on Orion UI (Also fixes
various exceptions on Eclipse client)