Fix bug: crash when get tag with no tag name