Rotational coherence in high-order harmonic generation from nonadiabatically aligned molecules