fix unwanted NULL value when logging a cleaned string, thx to an error-reporter

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>