Use nullif on the log4net exception parameter.