Bug 885579 - fix broken set removal, broken parentNode assumption, r=mikedeboer

--HG--
extra : rebase_source : 952a136f70b942d6e3df9466575cabc56156e80a