Fix a bug that can cause exception in nodeChange from the submit event

Add exception handler around `editor.nodeChanged()`