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

Fixes #897. "repeater-list-header" is not a thing.
not a fan of selecting on tag instead of class but since

* there is no class at this point to select on 
* line 287 adds the thead tag

the solution is good enough