On the stability of a helical magnetic field in a spiral arm