The $K^-π^+$ S-wave from the $D^+ \to K^-π^+π^+$ decay