Set the document global variable when the ElementDocumentWrapper is created
Merge pull request #86 from gabomdq/fix-namespace-document

Set the document global variable when the ElementDocumentWrapper is created