Oh, good point. I read Charlotte's web so long ago that I forgot to think of what pigs ate. Still, hopefully the slop she's making is from scraps that never made it to the dumpster, otherwise the same concern about contaminants applies.
I wouldn't consider it much of a concern - people can live just fine off of dumpster diving. Tons of perfectly edible (much less "contaminated") food gets thrown out.