Fixed a bug with existing keys and "null" values.