Throw error for put(key, undefined)