fix conditional expression for empty 'Name Tag'

name_tag[:value], when it is empty, return nil