Tooltip: Preserve the title attribute after disabling twice

Fixes #9719