Fix oauth from blowing up when redirect fails