editor: handle invalid xml sent as a wlxml document