Set needNullHandling to false only in case of custom generator and true otherwise

Fixes karltk/resty-gwt@88f788db6dcfd38018c7b63689b135bbe59bb450