[PATCH 5.4 334/658] power: supply: fix null pointer dereferencing in power_supply_get_battery_info