[battery] Consider the battery to be empty when the percentage is less than 3%

Also removes unneeded comparisons in the if-else-if-else-if thing.