Improve diode stability in some cases.
Authored by: arcachofo 2018-08-29
Parent: [r430]
Child: [r432]