Fix rotation crash if fragment is not ready