additional checks for NULL in ucl_elt_append()

If elt was NULL, ucl_elt_append() could crash, instead return head as an implicit array