Avoid trigger Battery test when there is no battery

For the device don't support battery, this test would check
undefined behaviors.

Bug 122806538

Change-Id: I2d64e717f8e9b3f2ccaa077868666ef81dea70bb
(cherry picked from commit 6345108322a1d506dc5d9b1014ae7b90b443c441)
2 files changed