generator: fix daemon functions with optional params but no mandatory params

The
  struct guestfs_$function_args args;
declaration was not emitted in that case, leading to build failure.