ThreadStats: fix mistake in HTML rewrite