Performance of the prototype JT-60 injector unit in the presence of a simulated stray magnetic field