[PATCH 5.10 283/663] power: supply: cpcap-charger: Fix power_supply_put on null battery pointer