fix issue introduced by https://github.com/mongodb/morphia/issues/492

Support querying by DBRef