[server] Handle corrupted repo correctly in seaf-migrate.