Skip test if battery is not present

The battery stats won't be updated if the device has no battery
which causes the test failed. Thus the test should be skipped
if the device has no battery.

Bug: 245075045
Test: Build
Change-Id: I0ae1e030c7e178ced91c94a8bc65a1d279ba37b3
(cherry picked from commit 78fcfdb7c86ff1625415d0fa0a5735565c8a7e41)
Merged-In: I0ae1e030c7e178ced91c94a8bc65a1d279ba37b3
1 file changed