Fixed bug where IE would throw exception if selection was changed while the editor was hidden.