fixes #9 should not attempt to remove text node from dom if it has never been added