Corrected access to module's root element (refs #4183)

Access the root element with `$dom->documentElement' instead of the erroneous
`$dom->firstChild' which could return a comment node.
Merge pull request #104 from eguaj/1.4-A4183

Corrected access to module's root element (closes #4183)