Allow for cases where SAML user_permanent_id is not a list, and [0] gives first character.
Allow for cases where SAML user_permanent_id is not a list, and [0] gives first character.

python-social-auth/social-core,python-social-auth/social-core