Fix for the issue with loading sso auto-configured webapp in edit mode

This pull request provides fix for https://wso2.org/jira/browse/APPM-187