Re: Speaking as a fire marshal
Through the water, yes.
It doesn't magically conduct up the stream or through the firefighter, it goes to the other battery terminal or the nearest piece of earthed metal which is of course inside the rack that's currently on fire- so who cares?
The battery may dump its energy by venting-with-flame, but as the place was already burning...
Firefighters do use water in building fires. They don't check whether the mains supply is off before they start, because they don't need to - the breakers are going to trip it off soon enough anyway.