Corrected battery percentage on iOS (thanks, Felix!).

Fixes Bugzilla #2397.
s/iPhoneOS/iOS