Make xt.grant_role_ext() more robust.
Merge pull request #1355 from bendiy/master

Make xt.grant_role_ext() more robust.