Remove duplicate function definition

getDOMDocument is already defined a few lines below, using the more
standard "self" reference rather than "this".
Merge pull request #831 from peitschie/odt-doc-codefix

Remove duplicate function definition