safety check when dereferencing peer root in registry