In thumbnails richtext filter, maintain markup that html5lib deems belonging in a head tag, and fix any script tags that have been self-closed.
In front-end editing, handle widget overrides not existing when FORMS_USE_HTML5 is False.