CDAP-462 - fixed deleting metrics upon redeployment of changed application

Metrics were not being deleted upon redeployment of changed application. Fixed.