There's a bug in how we're using this function in room search, but we definitely don't want it to crash. The event is technically not in the timeline, so we were dereferencing an invalid iterator or whatever.