Fixed issue where the program would attempt to create a new version even if the editor had been exited without actually creating a file.