Fix a bug pointed out by the Static Analyzer.

Mainly, you cannot have a nil value passed as a variable for NSDictionary.