Use hasattr instead of expecting AttributeError
Reconstruct API requests in error views to fetch site/profile info