teardown editor when selector does not match

Attempts to fix #7457

I'm not yet convinced this fixes the original issue, but it handles another case when failing to match a target for the selector. Removes some RTE related to the target's style missing. 

Sill investigating the main issue. Do not merge yet.