title: I can't implement a custom getter on realm result because `this(realmObject).propertyName` is null always yet data is there
body: <p>When I fetch records from my web API it adds reference of the repeated and nested object instances like this.</p>
  
  <pre><code>[{
   Id:1,
   "Customer_Id": 39,
   "Customer": {
      "$id": "2",
      "$type": "Entities.Customer, Wit.Trade",
      "CourtesyTitle": "Mr",
      "FirstName": "Ahmad"
    }
  },
  {
   Id:2,
   "Customer_Id": 39,
   "Customer": {
      "$ref": "2" //here same customer Ahmad
    }
  }]
  </code></pre>
  
  <p>Now when I fetch the records as RealmResults I want to check these references and replace them with non null/ non $ref real data objects from their corresponding table. Hence I implemented this custom <code>getter</code>.</p>
  
  <pre><code>//MiscStorage.java
  public static Customer getCustomer(int customer_id) {
          Realm realm = Realm.getDefaultInstance();
          return realm.where(Customer.class).equalTo("Id", customer_id).findFirst();
  }
  
  //Project.java which has a customer
  public class Project extends RealmObject {
     public boolean isModified;
     public int $ref;
     public int $id;
     public int Customer_Id;
     public Customer Customer;
     public Customer getCustomer() {
       if (this.Customer== null || this.Customer.$id != 0)
           return MiscStorage.getCustomer(this.Customer_Id);
       else return Customer;
      }
  }
  
  //Customer.java
  public class Customer extends RealmObject {
     public int $ref;
     public int $id;
     @PrimaryKey
     public int Id;
     public String Name;
  }
  </code></pre>
  
  <p><strong>Problem:</strong>
  In my customer getter the <code>If</code> condition never hits because <code>this.Customer==null</code> is not true nor the <code>this.Customer.$id</code> gets its real value hence its always 0. <strong>This $id not getting the real value is actually the core problem</strong>. But actually without debug mode this is not null and also the <code>toString()</code> method contains value for <code>$id</code>. I do get the data in UI but the getter always gives null and when I debug it also gives me null.</p>