Fix crash when closing a room while decrypting timeline events