title: Parse SDK exception: java.lang.IllegalStateException: unable to encode an association with an unsaved ParseObject
body: <p>I am doing a query to get the count of records in a table. But everytime I try filter any "Pointer" field, I get the error:</p>
  
  <p>My query:</p>
  
  <pre><code>ParseXpto.getQuery()
  .whereEqualTo("story", ParseXpto.getStory(o.getObjectId()))
  .whereEqualTo("installation", ParseInstallation.getCurrentInstallation())
  .countInBackground(new CountCallback() {
      @Override
      public void done(int count, ParseException e) {
           //java.lang.IllegalStateException: unable to encode an association with an unsaved ParseObject
      }
  });
  </code></pre>
  
  <p>I did some tests and I know that the error happens when I use <code>ParseInstallation.getCurrentInstallation()</code>. </p>
  
  <p>I have a Pointer on my ParseXpto to Pointer&lt;_Installation> class, so I need filter this field.</p>
  
  <p>Am I doing something wrong?</p>