Fixed updating of commit index on followers.

Due to snapshoting followers didn't update commit index from heartbeats with old prev_entry. Now heartbeats contain proper prev_entry and commit index becomes updated on followers with first heartbeat.