Fix for MLHR-1046

[https://malhar.atlassian.net/browse/MLHR-1046](https://malhar.atlassian.net/browse/MLHR-1046)

Main resolution:
- moved the app.subscribe() call to the promise resolution function

A few other changes:
- added .status-pending-undeploy css class
- removed an unnecessary newline