Conditions for invariance of molecular magnetic properties in Landau gauge transformations