[2.1] Added caution about using is_granted in error pages

Closes #2078