ChunkedIterator missing value check

Minor change to implement a size equal or greate zero. Also
enforce integer type to make the behavior more distinct.