Fixes IPHONEAPP-660

Add sanity checks around the setObject:forKey: call to NSDictionary to make sure we catch nils before attempting to set them.

Signed-off-by: Blake Skinner <bskinner@mit.edu>