Make xt.grant_role_ext() more robust.