Fix for the issue of not allowing accessing a store webapp to an authorized user

This provides the fix for https://wso2.org/jira/browse/APPM-186.