Remove Error if tooltip is disabled

If tooltip is disabled, this throws an error:

Uncaught TypeError: Cannot read property 'shared' of undefined