API: fix thresholdMapData repacking: do not compare to nTriggers but
to the threshold level which has been set.