Fix the "Erroneous data format for unserializing" error message

Fix the "Erroneous data format for unserializing" warning as in:
http://www.doctrine-project.org/jira/browse/DDC-3120
https://github.com/doctrine/doctrine2/pull/1045
but for mongodb-odm.