Throw useful error message for unmatched end tag

Fixes https://github.com/emberjs/ember.js/issues/9928.