(editor) Fix exception in error detection

This is a fixup for c15ea5626b