PixelStatistic: prevent a negative number of unlinked pixels