Fixing a bug where 0 sample counts can result in missing keys for child selection of nodes.