Menu: Fix var declaration and move regex comment to the right place.

Follow-up to a6806ab1
Tooltip: Only bind remove handler for delegated tooltips

The remove handler was being added for every tooltip, but only removed for
delegated tooltips. The default destroy behavior already handles non-delegated
tooltips, so the handler should only be added for delegated tooltips.

Fixes #9531
Closes gh-1156