WL-3191 Wrap inconsistent state in runtime exception

When getting a role that doesn't exist it is possible that there will be
a role already defined exception. In this case currently an NPE will be
triggered.

Instead, an `IllegalStateException` which wraps the `RoleAlreadyDefined`
is thrown in this case.