Bug 830389 - Switch to the right compartment before reporting an error. r=billm

--HG--
extra : rebase_source : e622501baf60ad138730daefcf7bc2a2a4d4571a