Blocking diode in battery charger