Make sure event handlers get cleaned up during parsing

**Not ready to merge; missing test**

This addresses the issue in #1598 wherein the `{{else}}` is read correctly into an `l` node, but it is never split into two sections.