fix NPE in TableSchema.clone()