Means for rapidly discharging a capacitor of the converter, in order to protect electrical components or prevent electrical shock