Handle empty lists passed to pretty_list_repr