Minor improvements to tooltips.

Add an indicator class to the tooltip context whether the tooltip is open or not. Do not attempt to calculate for the tooltip arrow if it is hidden.