prevent crash
Merge pull request #25 from sspitzer/issue24

Prevent crash for unclosed tags