We need to replace this test by a call to `is_focused` to cover the case where the element removed is not focused, but a child is.