Webapp update failure issue fix

This will provide the fix for https://wso2.org/jira/browse/APPM-198
Code would be nicer if you have a space before and after the equal sign. For example
var webappId = {};