But they didn't because materials that explode like that simply aren't used as batteries.
Further, software is not magic. In consumer electronics basic power management is done entirely by hardware. A hack cannot short out the battery, because the circuit to do that simply doesn't exist. Maybe the hack could cause enough of a sustained power draw to overheat the battery and trigger a failure eventually, but that would still look quite different from what we saw.