Yeah, a diode (at a low load) is a good way to verify whether the UPS will stop confusing your external charger. If it will, then either a relay or an ideal diode is the way to go.
However, it's quite interesting why and how exactly the external charger gets confused. Can you elaborate on this?