Fix MongoFactory init when openfire not installed
Merge branch 'OpenfireDEMO' into release-4.6-unstable