[PATCH 5.15 521/731] power: supply: fix null pointer dereferencing in power_supply_get_battery_info