fix and test edge case where target is removed when mouse is over tooltip