Don't reset to defaults if user selects Cancel on dirty editor

* Check return value of PlatformUI.getWorkbench().restart()