Remove Error if tooltip is disabled

If tooltip is disabled, this throws an error:

Uncaught TypeError: Cannot read property 'shared' of undefined
Merge pull request #2 from bozdoz/patch-1

Remove Error if tooltip is disabled