Yes and no...
The fix to the galvanic action you mention is to provide an insulating barrier interface. In this case it probably (pre-green) would have been a Mil-Spec strontium chromate epoxy primer.
I bet this is the stuff they didn't use...
The best way to prevent electrogalvanic corrosion is to plate the parts, e.g., steel fasteners, with cadmium.
The best way to prevent corrosion of the aluminum structures and skin is alodine (hexavalent chromium conversion coating). DoD rolled over and banned both materials in the new aircraft.
Both of the tried-and-true materials above have been targeted by the environazis even though the amount released to the environment is miniscule.
As to the question about the Shuttle External Tank foam falling off, YES, the excellent adhesive was replaced with a “green” (defective) adhesive. NASA could have gotten a waiver, but the NASA Administrator, Golden, had his lips sewed to Al Gore’s butt.
BTW, I am a retired Shuttle engineer and currently own an electroplating company, so I AM the source of the facts stated above.