Backed out 2 changesets (bug 1047765, bug 1043426) for reftest failures and crashes on a CLOSED TREE.

Backed out changeset e283f73fed2b (bug 1047765)
Backed out changeset 3596f811a264 (bug 1043426)