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

--HG--
extra : amend_source : caaae32bbe716409056b5d3b8cb654e5f33e1882