title: Error: Could not locate target object while calling method getPageElementRange on object with id 45
body: <p>A function that was working is now showing the following error:</p>
  <p>Logger: error=Error: Could not locate target object while calling method getPageElementRange on object with id 45.</p>
  <p>Wondering if this is an intermittent bug that has arisen in a recent release of app script as my code has not changed?</p>
  <p>Code that does not work is:</p>
  <pre><code>var presentation = SlidesApp.getActivePresentation();
  var slide = presentation.getSelection().getCurrentPage().asSlide();
  var arrPageElementsSelected = presentation.getSelection().getPageElementRange().getPageElements();
  </code></pre>
  <p>If I break this last line down into three lines, it still does not work:</p>
  <pre><code>var presentation = SlidesApp.getActivePresentation();
  var slide = presentation.getSelection().getCurrentPage().asSlide();
  var selection = presentation.getSelection();
  var rangePageElements = selection.getPageElementRange();
  var arrPageElementsSelected = rangePageElements.getPageElements();
  </code></pre>
  <p>Again, this code used to work up until the last few days. I am thinking that something has become broken in the Google App Script engine.</p>