DATAMONGO-805 - Excluding DBRef field in a query causes a MappingException.

Integrated requested changes from code review.