Add checks for sentry so app can run without it.