Remove incorrect assert.

With the previous fix, name_tokens can be empty in add_type.