SENTRY-391 add a check if uri is null