Fix exiting namespace when it's the last child (#223)

Fixes https://github.com/tildeio/htmlbars/issues/223 (which came from https://github.com/emberjs/ember.js/issues/9971 )
Ah but it was `true` for *any* last child node, not just those of the whole template.