Effect of a magnetic field on the gate current in heterostructure field‐effect transistors