This caused `prev_state_ids` to be incorrect if the state event was not replacing an existing state entry.