don't assume all tika responses have pages.
remove needless require_once.