title: "Uncaught IllegalOperationError: H.map.Group#removeObject object not found" when using Here.com javascript API
body: <p>I'm using here.com javascript api v3.
  I'm using the following line to reset the map (by removing all objects in it):</p>
  
  <pre><code>map.removeObjects(map.getObjects());
  </code></pre>
  
  <p>This function runs with no problem when initializing (map is empty). But when I trigger the reset (via a button), and the map has objects in it, I get the error mentioned in title. I tried displaying the "map.getObjects()" function in the console, and it shows the objects it carries with no complications.</p>
  
  <p>How can I find out what the problem is? How can I know which object javascript is talking about when saying "Object not found"?</p>