IMO this issue is in the provider as well. We will investigate it once we get to this case. Make you sure you hit the Like button to cast your vote for it.
I don't think that the starting point in the loss of the variables is in the TextEditor. I think the Docx Format Provider is the cause of the issue. I say this because after importing the document the Provider's DocVariables collection is empty. Can we confirm this?