inventory_server: Fix inventory registration when registry section is present