Update YMongoDocument.php

Fix issue https://github.com/fromYukki/Yii-MongoDB-Driver/issues/1
Merge pull request #2 from zarv1k/patch-1

Update YMongoDocument.php