Handles DBRef proxy is null case