Any kind of "opencell" foam will retain water, which over time will hold moisture against the fender surface and eventually cause rust. (sad smiley)
Some sort of anti sqeak material should be used though, IMO, just not sure what kind.
Good question, maybe a bead of seam sealer would work?