Only append snapshot to leader's logs when logs are empty.