The hadronic recoil mass spectrum in semileptonic $B$ decays and extracting $|V_{ub}|$ in a model-insensitive way