Don't return orphaned references

Previously a referenced object which did not dereference correctly was still
returned as a null object in a list. These "orphaned" derefs are now excluded,
but the logger still reports the orphaned document.