Ensure logging tweak doesn't fail on undefined
Ensure logging tweak doesn't fail on undefined

Run the replace on the log line string instead of the separate
parts since we can ensure the line is a string.

Signed-off-by: Jason Robinson <73c4b53c33b2f03b4e26d9578bea93e0ed8e16b0@matrix.org>

matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk