catalog-generator: fix a bug that --replicas generates invalid catalog.json