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.
Merge pull request #489 from Igotit/master

Check whether value is NSNull.