register_sentry fixes

This fixes https://github.com/nvie/rq/pull/215