r23575: Fix a segfault when lp_load is called before init_registry.