BlockFrequency: Use a smarter overflow check.