Fix bug on running --dry-run on non-deployed network.