Fix bug in uri where redirect check fails.

When the redirect check fails, the 'status' key might not be set in
resp_redir, so we need to check for this.