Fix to not crash on deleted (?) pages

Change-Id: I7c9785e972f29a37573d7bcbeaf0c63bbba66b29