Massive neutrinos, helium production and the primordial magnetic field