Fixed handling of un-typed collection references

The MongoDB ODM supports references where the type of the referenced entity is stored in the DBRef object in the database, so the type information is not available in metadata. When this happens, getAssociationTargetClass returns null.