Fixed bug where Gecko would throw "Wrong Document Error" for ranges that pointing to removed nodes.