Bug 916685, no need to store empty event handlers, r=bz

--HG--
extra : rebase_source : 4a1b7e5e177744438f6bb59d58b0e2f6e2fe3b5c