epub backend: more anti-NULL protection for epub_document_set_index_pages