Fix infinite loop when processing incomplete sections in tags

If the end tag for a section is not found, do not try to render
the section after recording the error.

fixes #2