[WFCORE-242] : The deployment content is deleted if first undeploy and then deploy the same application using CLI batch.

First approach to a fix.