MULE-6831: Applications deleted when deployment fails

_ Fix scenario: fixing a wrong config file from a failed applicaiton must redeploy the app and the app does not have to be undeployed on next AppDirWatcher execution.
(cherry picked from commit d613b0c)