Fix tag.getChildren().size() == 0 bug

Signed-off-by: jimmy <jaychou19910110@126.com>