On continuity of the Álvarez class under deformation