Bug 15572: TransformHtmlToMarc - rewrite the loop