Avoid NullPointerException when page is not yet indexed