title: Protractor, with isDisplayed() I get NoSuchElementError: No element found using locator
body: <p>In protractor 2.0, I am checking in a <code>expect()</code> if one element is displayed. I expect a false, but the weird thing is that I get following error:</p>
  
  <blockquote>
    <p>NoSuchElementError: No element found using locator: By.id("userForm")</p>
  </blockquote>
  
  <p>My code is:</p>
  
  <pre><code>describe('closeModal', function() {
      it('should close the alert that appears after registration.', function(){
          element(by.id('closeAlertModalButton')).click();
          expect(element(by.id('userForm')).isDisplayed()).toBeFalsy();
      });
  });
  </code></pre>
  
  <p>I understand that I get that error because element is not longer on the page (is what I want to confirm), but shouldn't I get a false and not a error?</p>