raft: not compact log if the compact index < first index of the log

It should ignore the compact operation instead of panic because the case that
the log is restored from snapshot before executing compact is reasonable.

fixes #1774