* commit '3afca74a2a40b4e957630909fe5df76aa550da69': BatteryStats: Adds an additional condition to avoid ArrayIndexOutOfBounds.