although i don't think worms are usually the ones in food...a certain level of insect parts are allowed in all types of manufactured food as it is. the primary reason insect parts are removed at any degree is purely cosmetic and not associated with any health hazards.
I wouldn't be surprised if someone actually said this but it just goes to show you that many of the people who speak for Islam should not. This is the case on both the conservative and liberal extremes.