Fix tag closure bug:

Only stop printing when way or node is closed, not any tag.