title: Symfony2 is_granted('IS_AUTHENTICATED_FULLY') during 404 error page display, causing ResourceNotFoundException
body: <p>I have setup custom error pages to display for certain HTTP errors in the folder:</p>
  
  <pre><code>app/Resources/TwigBundle/views/Exception/
  </code></pre>
  
  <p>The 403 page (<code>error403.html.twig</code>) works and displays as expected.</p>
  
  <p>The 500 page (<code>error500.html.twig</code>) works and displays as expected.</p>
  
  <p>The 404 page (<code>error404.html.twig</code>) throws a 500 server error:</p>
  
  <blockquote>
    <p>PHP Fatal error:  Uncaught exception 'Symfony\Component\Routing\Exception\ResourceNotFoundException'</p>
  </blockquote>
  
  <p>The error is being thrown by doing an auth check to display certain menu items for users that are or aren't authenticated:</p>
  
  <pre><code>{% if is_granted('IS_AUTHENTICATED_FULLY') %}
  </code></pre>
  
  <p>If I remove that check and just allow all menu items to display, the page loads the error page as expected. Again, the 403 page displays as it should and utilizes the auth checks without a problem. </p>
  
  <p>I'm stuck on this one. The pages are EXACTLY the same, apart from the filename. </p>