From what I have read Hubble isn't very much impacted by the magnetic field and may even be helped by it:
Hubble is not a radio telescope. The Earths magnetic field however helps protect satellites and astronauts from solar radiation, that is what you heard. A lunar based telescope would not have such protection, that is one of the big problems with long term manned missions.