Don't attempt to set nil values and don't use static buffer

Can (for example) cause NSString properties to be set to @"(null)"