- fixed issue where "undefined" is sent to Mongo constructor as the target
  host