force blur and tag change when closing inspector

Firefox doesn't fire a blur if the element is just
removed from the dom.