Ugly patch for invalid battery percentage on IOError while resuming from hibernation