Handle empty partitions in getYTYSolver