handle AttributeError: ComponentAPI instance has no attribute 'get_registry'