Bug fix for nullpointer exception if roles are not found from the request.