Fix tab/menu select without javascript.

Fix issue where click on a WTabWidget tab without an explicit link
is ignored when client is not running javascript.

Needs review and additional testing.