[config] Redefine config.get to handle cases where the id is undefined