Tabs: Fixed linking to an anchor within the same tab panel.

Fixes #5900