Update MongoDB.php
Merge pull request #5382 from ThaDafinser/patch-1

#4954 Mongodb small changes
Merge branch 'hotfix/5382'

Close #5382
Fixes #4954