Fix stack on getBatteryLevel and related CSE crash