Null responses when cached

Fix for #52.

The response object is not necessarily returned if the cache is hit, which causes an error "Cannot read property 'headers' of undefined". Check if the response is present before adding the location to the parsed object.