editor: fix - check for success before changing current element