[PATCH 5.11 335/775] power: supply: cpcap-charger: Fix power_supply_put on null battery pointer