Added caution about using is_granted in error pages
Merge pull request #2079 from WouterJ/issue_2078

[2.1] Added caution about using is_granted in error pages