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

Return "0" when no power supply is present

Change-Id: Ic873705c20468cb5e7898fa2ddff5828cd5928cf
(cherry picked from commit c3224cc43c85879035b7d0c046d112cb0601dbf1)