Only push an undo EditCommand if something actually changed.