Values of isotropic quadratic forms at $S$-integral points