Workaround for Firefox failing on RemoveText_CopesWithEmptyTextNodes

and some clean-up
This is purely a gotchya when attempting to find a non-HTMLElement by id in Firefox. The existing uses of getElementById in WebODF are all looking up HTMLElements, which do behave correctly.