Checkout my fork (sglaser/htmldiff.git) to code to reproduce the error. I don't have a fix (hence no pull request).