blob: propage internal iterator errors to caller

This fixes silient data corruption in case of iteration over a malformed
index.
Now we fail on start if we detect that index has broken entries.

Reported by: shaitan@
data-sort: now iterator is propagating errors
blob: move check routines to separate function
index: check index validity on start