Fixes submit hijack.
Extends empty block removal to headings.