Bug 838499 - Assertion failed in function SetJsObject(), r=echou