Fixes IOS-4383 - null value in CFDictionarySetValue

Due to testing for _nullObject parameter it is possible for the code to
try and pass a null value to CFDictionarySetValue - this patch fixes
that and cleans up the handling of _nullObject.


JIRA: IOS-4383