Failed to load mods: __LithiumBattery__/prototypes/compat-data-final-fixes.lua:26: attempt to index field '?' (a nil value)
stack traceback:
__LithiumBattery__/prototypes/compat-data-final-fixes.lua:26: in main chunk
[C]: in function 'require'
__LithiumBattery__/data-final-fixes.lua:15: in main chunk
It would probably be better to iterate over the fluid box connections of pipe-to-grounds instead of assuming [2] corresponds to the underground connection anyway, but either way, a sanity check (if prototype_name.fluid_box and prototype_name.fluid_box.pipe_connections and prototype_name.fluid_box.pipe_connections[2] then in the hard-coded case) would improve compatibility.
(Not sure which mod adds the offending prototype - I have too many mods active to conveniently check)