Only check range of nPrune if it's set.