Updated lyx2docx to replace the use of a regular expression for removing empty div tags with a DOM node traversal implementation.