Fix issue #121 - stop prompting the editor to save unsaved changes when there are none

See issue #121 for steps to reproduce the problem. This PR should fix #121.