Trim templates
Don't let an error in a `.fire()` cause other events not to fire.