Don't reparent text nodes in spans when no text node

* Or breakage may occur
* Fixes #12