Fix upgrade issues when check_deployments_integrity is called with no op...

...tions