Fix throwing exception class in MongoQueue constructor