fix get_redirects core dump ( Closes: FS#337 )