A battery-powered variant of the venerable G class, redesigned in recent years and one of the oldest light trucks in the Mercedes-Benz lineup, could help secure the model’s future at a time when environmentalists are targeting heavy, less efficient SUVs with high emissions.