In reply to KA:
Polyurethhane woodglue (builders merchants) would be a reasonable choice, Epoxy (Araldite, everywhere) would also work. Neither should harm your helmet assuming it's either EPP or EPS foam in a Polycarbonate or Polystyrene shell. The Polyurethane glue remains flexible once cured and sticks to most stuff.
On the other hand a decent double sided tape is likely to be adequate and it's cheap/clean.
No guarantees though, if you're worried about it call the maker/distributor (who'll likely suggest replacement).
jk