Reset err after call to GetDocument()