Fixing https://wso2.org/jira/browse/IDENTITY-2948

Fixes failure in loading My profile page of the dashboard, for tenants.