Fixed index out of bounds exception in XMLA related to Roles.