When client is disabled, disable Sentry404CatchMiddleware

When disabling the Sentry client, the Sentry404CatchMiddleware still attempts to capture 404s.  This raises a TypeError.  This commit fixes that and adds tests.