Magnetostatic solutions for a semilinear perturbation of the Maxwell equations