codegen: Do not generate extra null check
codegen: Do not generate extra null check

Spotted by coverity

Acked-by: Fabiano Fidêncio <2931bae082ef9bc04523ba759c03a4778316d48f@redhat.com>

fgouget/spice-common,fgouget/spice-common,fgouget/spice-common,fgouget/spice-common