Workaround for Firefox failing on RemoveText_CopesWithEmptyTextNodes

and some clean-up
You could use the ``querySelector`` instead of ``doc.getElementById`` for a cleaner cross-browser experience: ``paddedElement = doc.querySelector("*[id='paddedByEmptyTextNodes']");``