Avoid a race condition where media is closed because we get the video track too soon
mentioned in commit 3d82f5e8