don't show tooltips/popovers whose element isn't in the DOM; fixes #13268