see #15
Fixed a problem with overzealous text-node removal