Allergies are definitely something to consider- if an actor told me they had a _____ allergy and couldn't be near peanuts/bananas/fill in the blank, it totally makes sense to keep that food out of rehearsal. But there are any number of things that people are allergic to, and without knowing that someone has a specific allergy, I don't think the burden of responsibility is on me to keep that food out of the room.
If I was working with kids (who may not be old enough to know about an allergy like that), I might feel differently. (Although, in my experience, kids at almost any age know if they have been diagnosed with a food allergy).
If there is food in the show, it's my responsibility to ask the actors if they have any allergies.