backout 78bde999fddd from bug 975782 for assertion failure in mochitest CLOSED TREE

--HG--
extra : amend_source : 3802b09260b751790211ed5fe8174bf162694e5a