BatteryStats: Adds an additional condition to avoid
ArrayIndexOutOfBounds.

This change takes care of the case when the length
of the array is 0.

Bug: 16039301
Change-Id: Ideb3ccc723c5d720069760aeedae8abb91c6420d
1 file changed