Check that tooltip is active before trying to hide it

Test Plan:
Check that all tooltips perform correctly in browser.
Check that hiding works
Check that no errors are thrown when clicking and tooltip is closed

Reviewers: alan, pamela

Subscribers: #cs

Differential Revision: http://phabricator.khanacademy.org/D13831