You won't have an EMP in space - the EMP is generated by the motion of intensely electrically charged pieces of atoms acting against the magnetic field of the earth, and by electrons that were launched from atoms by the gamma ray pulse.
There is a solar magnetic field, but it's much weaker, so wouldn't make much of an EMP, and there is no atmosphere is space so the gamma rays don't accelerate any electrons.