Fix redirect checks exit policy

The redirect checks must stop as soon as the same origin policy is met and not perform the HTTP GET
call afterwards. This fix introduces this behaviour.