A stringy test of flux-induced isometry gauging