stop failing if template has text or comment nodes at end. closes/fixes #92