Deal with empty nodes.