Fix calling removeEventListener if it does not exist
Fix calling removeEventListener if it does not exist

matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk