[Fix] Nullcheck redactedEvent (#2103)
[Fix] Nullcheck redactedEvent (#2103)

We should only check whether a redacted event is a visibility event *if the redacted event is not null*.
matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk