Fix for crash on devices that report charge as greater than 100%.