fix crash on rotation of final page

Change-Id: I553d798518e592bfb5a5c31241c54b76675cca9a