fixing removing the tooltip when the tooltip is gone.

When the button or element that the tooltip is related is gone, for instance, via a ng-show or ng-if, the tooltip hangs in the screen. This fixed that.