The Effect of Abundance Variations on Estimates of the Densities of Broad-Line Region Clouds in Quasars