Throw useful error message for unmatched end tag

Fixes https://github.com/emberjs/ember.js/issues/9928.
It doesn't seem that we need to generate a new `formatEndTagInfo` function everytime that `validateEndTag` is called, can you move this function outside of `validateEndTag`?