wal: OpenFromIndex fails if it cannot find previous index

Example:
We save entry 1, 2, 3 to WAL.
If we try to open 100, it should fail.

#1033 point 2.
@jonboulle we cannot know if the index is valid or not until we read all the entries