Handle Undefined key when emitting a map function