Handle stale localStorage when selecting the default tab in the UI

Fixes #121 by gracefully handling when the default tab name stored in `localStorage` is stale by selecting the `"index"` tab instead.