Bug 1103411 - EventStateManager may call AddBoolVarCache multiple times and crash. r=bugs

--HG--
extra : rebase_source : 19c5ff83a2799c6dcb5eb305f2c30c62cae2805a