Made SENTRY_DSN optional to prevent it from raising misleading exceptions.

Fixes #1900.