Should we skip the count++ ?  It seems to me we should continue here and skip the after-loop "if null_seen and count is 1" check.
However, if CF_NULL_VALUE can appear in a list with other entries, I guess that's not valid.