Update MongoDB.php
Merge branch 'hotfix/5379'

Close #5379
Merge pull request #5382 from ThaDafinser/patch-1

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

Forward port #5382