I've got a really old UPS which I had to replace the entire set of batteries because they had been left discharged for too long. There was a fuse on the PCB which protected the UPS (and you) if for some reason the batteries got shorted out. If you're careful you might want to work out the circuitry attached to the batteries to see if there is a fuse there as well.

- Trevor