Bug fix: template parsing breaks when lua code closure ?> has no trailing space.