Added test for empty item.

Sequences can end in a trailing comma, so make sure there is an actual
item before adding it to the list.