(avoid-dupe-theads) make sure thead actually gets removed

Fixes #897. "repeater-list-header" is not a thing.