Check if location was not sent in redirect header

It is not usual, but I've found a couple of servers that ocassionally send a redirect response without location header field. I added a verification so an error is emited instead of throwing an unhandled exception.