fix #13291

This is the patch for #13291, and maybe can also fix #13222. Since the root cause are both about salt-thin.taz deploy