Fix nil roles edge case in core_roles_only