Setting json before addTrack meant it didn't have a media yet, so the update would fail.

If we add it first, then set json, we add the empty track then add the track events through the json setter.