This is how pretty much all rechargeable lights used to work. And you are correct about shorting. It is a major issue but very easy to fix. All it needs is a blocking diode. Of course some people skip that.