Fix a bug where store migration forgets about legacy indexes.

IndexManager now also respects the availability guard (by virtue of transaction begin) when creating an index.
Only migrate legacy index.db store files if they exist.
Merge pull request #2088 from chrisvest/legacy-index-migration

Fix a bug where store migration forgets about legacy indexes.