MODE-2228 Fixed the way anonymous roles are parsed and validated.
Merge pull request #1151 from hchiorean/MODE-2228

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