Work around NullPointerException in PageIterator

I think the error actually arises from PageIterator in the GitHub java
SDK. This is a simple little workaround until I patch the other
library.

Signed-off-by: Patrick Wagstrom <patrick@wagstrom.net>