BZ-9188: Adding error handling to Portfolio.GetIdentitiesWithAccess