additional checks for NULL in ucl_elt_append()

If elt was NULL, ucl_elt_append() could crash, instead return head as an implicit array
But this efficiently removes all elements from the list!