fix issue in "retry" output being invalid. Also optimized output to be less invasive.
fix issue in "retry" output being invalid. Also optimized output to be
less invasive.

ioBroker/ioBroker.hue,ioBroker/ioBroker.hue