handle null childnodes