The stiffness of the shell for this kind of buckling depends on the aveage thickness. A localized thin spot wouldn't significantly affect it. API is apparently assuming that corrosion is somewhat localized, rather than a uniform loss of metal on the entire tank. This also enters in on some of the weight calculations, which are not always handled uniformly.