ENG-6428: fix empty generation case.