htmlutils: fix a NameError