SEIWatchDogTab: fix bug in state HTML writing