Fix bug when trying to open the new editor without any changes made