logformatter: fix AttributeError
logformatter: fix AttributeError

make sure we have the relevant fields before we try to log them.

matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse