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

--HG--
extra : amend_source : d074fc6118703c27b67d70d8b70782a1d6b0a2f7