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.
Merge pull request #1784 from yichengq/234

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