Fixed a bug causing a redis connection to be opened for every input
Outputs from the mapper function can now be undefined and they will be skipped.