wal: fix Read

It returns error if index is higher than the last entry in log.