fix(privileges): raise exception for privilege with invalid name