Fixed HTML and CHM exporter exception handling