fix to "response undefined" problem

This should fix the "response undefined" problem as well as allow the "err" from request to pass through.  The situation is request returns an error as well as an undefined response.