Call sentry only when it was set up.

Fixes issue 1727.
Send traceback to log if Sentry not set up.
Merge pull request #1730 from gittip/issue-1727

Call sentry only when it was set up.