Fixed a bug that caused active tooltips of elements that get removed to
remain active and showing.