Fixed local store migration and possible crash.

[FIXED]     Migration to local store.
[FIXED]     Potential crash when enumerating sheets to dismiss.