Revert "remove panic if index is beyond end of log"

This reverts commit 59f426f2fc283be9692984282047c318636e43d2.
Merge branch 'master' of https://github.com/euoia/raft