Added checks to omit NSNull values in addition to nil values. This is ne...

...eded for NSDictionaries that do not allow nil values.