XD-1775 & XD-1781 HdfsJdbc, HdfsMongo Accept Tests

I looks like environment.getMongoDbFactory will never be null, in that XdEnvironment will throw an exception if it can't create a MongoDBFactory.  

The consumer of hdfsMongoDb() doesn't check for the null value also.  I see this same issue with Sinks.jdbc(),