fix(Doc): Reset private properties when Doc::affect() is called (refs #4877)
Merge pull request #1224 from eguaj/3.3-A4877

fix(Doc): Reset private properties when Doc::affect() is called (closes #4877)