On robustness of generative representations against catastrophic forgetting