Only configure Raven if the DSN is set

Raven throws an exception if you set the DSN to something that isn't a URL,
so passing in `nil` won't work.