The replacement of the `hasattr` check by a `try`/`except AttributeError` can mask `AttributeError`s within `backend.has_perm`.