Destroy the tooltip popup only when it's closed

Fix  https://github.com/geoadmin/mf-chsdi3/issues/791