Throw an exception if a redirect occurs on Android