MODE-2228 Fixed the way anonymous roles are parsed and validated.