A speedup for .remove() (which also speeds up .html()). Fixes #4178.