[openEuler-5.10 411/557] power: supply: max17040: fix null-ptr-deref in max17040_probe()