corrects is_granted cannot be used in 404 template