On the regularity of the Hausdorff distance between spectra of perturbed magnetic Hamiltonians