Rbac::getRole() : check object->getName()
Rbac::getRole() : check if required role is an object before loop.
Merge pull request #5973
Merge pull request #5973 in master