Contribution of the magnetic field induced by the current passing through a spin-valve element