Bug 891259: Set discharging time to 'Infinity', r=mounir

If the discharging time is unknown, the W3C Battery Status API
requires its value to be 'Infinity'. The current code returns a
discharging time of 0 when discharging the battery. This patch
fixes the problem.