Add empty-node? to test whether a node needs to be filled by text.