Hide the editor when the selection does not have an anchor node. Fixes an issue where it was throwing an error in certain cases, because the blur event is not firing.