Merge pull request #705 from mulesoft/MULE-6888

MULE-6888 - creating anchor file only when app was deployed successfully...
(cherry picked from commit 7bcdfb4a887bf0e6e6d999375bc4f08b6785c775)