Fix bug in uri where redirect check fails.

When the redirect check fails, the 'status' key is not set in
resp_redir, so we need to check this.
Merge pull request #3966 from sergevanginderachter/uribug

Fix bug in uri where redirect check fails.