Fix MongoFactory init when openfire not installed