A few years back I read that one should not do this with consumer-grade UPSes because they have no cooling and are designed so that during the short time the standard battery lasts they will not reach an unsafe temperature.
Anyway, I replaced the battery by a used one from another UPS, and all seems to be fine.
Perce