revert (el_pagediv can be legitimately None here )
@@ -617,6 +617,7 @@ class OcrdMets(OcrdXmlDocument):
el_pagediv = None
if self._cache_flag:
+ if pageId in self._page_cache:
el_pagediv = self._page_cache[pageId]
else:
el_pagediv = el_seqdiv.find('mets:div[@ID="%s"]' % pageId, NS)
