Fix leaked global 'xlhtml'

This is causing some unit tests to fail for me.