fix bug where accessors are not generated for nillable properties

I think this bug was introduced back in January 2013 when merging 172b088 and 8a15732