Fixed bug in getNextRevision() where "error" documents were not beingdetected properly before searching for the next identifier.
Fixed bug in getNextRevision() where "error" documents were not being
detected properly before searching for the next identifier.