[BUGFIX] Roles are not always correctly initialized
Due to #47975 it happens, that packageKey
and name are not correctly set in role objects. This
change is a quick workaround, which can be removed
once the above issues are solved.