Solve issue #25: Check for root tag end when passing endElement

Before this change the sax parser would be confused by a < immediately after the end-tag of the xml document.
Merge branch 'master' of github.com:willemdj/erlsom into issue_25