Finalize nonterminal valueless attributes