signal error when attempting to generate from a
metafunction with no cases

closes PR 13536