Tabbedinterface: URL hash given precedence for determining default tab

Fixes #2407