[Bug 58401] system.fill_battery_state: support battery drivers that expose energy_* instead of charge_* attributes of power_supply_class