[PATCH 6.1 0783/1146] power: supply: fix null pointer dereferencing in power_supply_get_battery_info