fixed segmentation fault in client if the result is null, e.g. for alter
table