Remove previous cheap hack by changing the 'key doesn't exist in map' logic from === 'undefined' to !== 'number'