Quick fix for a bug that has appeared in later MongoDB versions:
https://github.com/Sammaye/MongoYii/issues/29