Its unlikely that serving nuts would cause problems but the chance is still there. At 38,000ft crews generally don't want to take that risk, epi pen or no epi pen, because ultimately it is they who have to deal with it should anyone have a severe reaction. It's not nice for the crew and it's certainly not nice for the casualty when they are miles away from an hospital. I'm speaking from experience.