[server] Fixed bug with some installations of mongo: https://github.com/LearnBoost/mongoose/issues/993, https://github.com/saintedlama/mongoose-version/issues/6