Handle stale localStorage when selecting the default tab in the UI

Fixes #121
Merge pull request #122 from ericf/default-tab-stale-localstorage

Handle stale localStorage when selecting the default tab in the UI