Rework missing battery detection and handling.