* commit '1770f9cfa546dbacb622550ef845c2dcb7f9b995': BatteryStats: Adds an additional condition to avoid ArrayIndexOutOfBounds.