Ensure Location header on redirects before parsing

Fixes crash when HTTP redirect received without a Location header set.

Conflicts:
	Rakefile