As seen in the bug report, roomEvent could be null and then we get a nice and simple null-access error. We should be careful before trying to use it. BUG: 502687
There's still some stuff that could potentially go elsewhere but I think it's enough for now.