kaplibs: Only find clipped statistics if values have been excluded.

Also rest the index otherwise a duplicate set is generated and
KPG1_MVBDx returns twice the required length and hence the wrong
percentiles evaluated.