Fix redaction of sensitive settings inadvertently modifies the setting
Created by: danesss
Issue
ECDC-3152
Description of work
Fixes bug introduced in PR https://github.com/ess-dmsc/kafka-to-nexus/pull/670. Sensitive configuration settings were not only redacted in logs, but the redacted value was also used to configure the application.