Corrected checking for thresholds for which no blocks are detected.