The effect of hadronic scatterings on the measurement of vector meson spin alignments in heavy-ion collisions *