Fix null escaping bug in tuple packing