Do undeploy only if the artifact is deployed

In a first deploy, the artifact doesn't exist on the server-group, causing an error. This patch verify if the artifact exists in the server-group. If it not exists, skip undeploy phase.