Handle different return types from Dataset::get_chromosomes gracefully