Bug 979199 - DataStore should not dispatch events when the window is destroyed, r=ehsan