Don't attempt to set nil values

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