Fix bug where we tried to insert state events with null state key