generator: cope better if the parameter list is empty

Signed-off-by: David Scott <dave.scott@citrix.com>