Fix return of empty list of cases

Spenser Shumaker <sshumake@redhat.com>