Fixed save_enablewhendirty functionality

Added param check. Save button is now enabled on load if save_enablewhendirty is false. Otherwise, it is hidden until editor.isDirty() is true.