Revert "DATAMONGO-884 - Remove unnecessary check"

This reverts commit a85ec85e68ee04411a0c368d7126df9142c1b391.