Check whether value is NSNull.

Check whether value is NSNull. When dynamically set property to nil, we must send [NSNull null] instead of nil which can't be set as an NSDictionary value.