[fix] Ensure `response.headers.location` is defined. Fixes #276.