Ensure tooltip code is ran with a timeout

As this is blocking ensure the whole operation is ran with a timeout.
Merge pull request #899 from 7sharp9/tooltips_ensureTimout

Ensure tooltip code is ran with a timeout