PHP-883 Fix DBRef preparation

See: https://jira.mongodb.org/browse/PHP-883

This restores previous behavior, which was broken by 926d08d6965e88a07e2c9c0cd029484142a79c4e in #473.