Only redirect if a "location" header is actually, present, avoiding an
NPE in the event it's missing.

Should fix #145