Bug 981637:  Make overflow events fire correctly in UpdateOverflow codepath.  r=mats

I confirmed that the mochitest fails without the patch and passes with
it, both standalone and in the directory harness.