Catch and stop redirect loops.