Added fix for
https://github.com/Sammaye/MongoYii/issues/46#issuecomment-16720624