Fix for occasional crash when clearing saved pages.

Change-Id: I828294b6e0515d4a2d307a833581a5d0ea7de6f9