Evolution of the baryon asymmetry through the electroweak crossover in the presence of a helical magnetic field