Removed null xRefs

Removed null xRef objects of the form:

        "xRef" : { "database" : null,
            "id" : null
          },