fixed capp undeployment issue in remorte server
Fixed TOOLS-2540.