Fix bug #6088: Make migratePluginStores() not break startup on database corruption. Argh!