Fix hover-tooltip flickering when mouse re-enters

- is(':visible') seems to be the only reliable check, without a refactoring of how hoverState is used
- tests need improvement
Merge pull request #14273 from sgonyea/master

Fix hover-popover/tooltip flickering when mouse re-enters