sec-battery: Standardize the output of the "online" property

Return "0" when no power supply is present

Change-Id: Ic873705c20468cb5e7898fa2ddff5828cd5928cf
(cherry picked from commit 84e7eda3b1fef99dc9aa6419b35f05224eeff1a0)