Handle RDDs with no partitions in aggregate()