Fixed out of bound Exception in double role assignment check, if only
one role was assigned