Rydberg-atom-mediated nondestructive readout of collective rotational states in polar-molecule arrays