[nw10] fix crash: return object_registry correctly without scope