[Bug Fix] Inserting nil value into NSDictionary may cause exception.