The generator checks condition
if (maxCount > 0) : line 421 and stop the generation when amount per host exceeds maxCount( continue : line 455)
but when maxCount == 0 it goes directly to line 465 :output.collect(key, entry);
It is obviously not correct, the correct solution would be to add
if(maxCount == 0)
at line 380.