Clear custom tooltips when destroying parent widgets
The tooltip wait loop created by the custom tooltips was not cleaning up after itself if the widget the tooltip was being called on was destroyed
This caused the tooltips to be costantly waiting for the custom tooltip to be ready, even though it never could be.
Fixes #4306 (closed)