Now that I look at `node = child` and then there is `SG_UNREF(node)` it can be that everything is all right already!