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

Return "0" when no power supply is present

Change-Id: Ic873705c20468cb5e7898fa2ddff5828cd5928cf
Merge remote-tracking branch 'upstream/cm-10.2' into HEAD