Fixed error conditin statement for callback

238         /**
239          * Internal callback method for the HTTP Request
240          * @param error
241          * @param response
242          * @param body
243          */
244         function responseCallback( error, response, body ) {
245               var data;
246               log('Response Status: %d', response.statusCode );

If error exists then response do not have statusCode filed. and process will be shutdown. 
so I added If statement on top of "var data;".