Bug 919717, in preparation for WebIDL EventListener, fix nsWrappedJS' JSObject handling, r=mccr8

--HG--
extra : rebase_source : 0ff6855c2283b6b395e5ad1cfcdd813b7467ac43