Fix for BC break caused by https://github.com/doctrine/DoctrineMongoODMModule/pull/87