Fix failure when output of UNNEST is not used