MULE-6888 - creating anchor file only when app was deployed successfully...

... and after the deployment is success