[SPARK-3320][SQL] Made batched in-memory column buffer building work for SchemaRDDs with empty partitions