fixing issue when undeploying servicegroup - Cannot Undeploy Group which is Already Deployed