Fix to handle null/undefined data

- Adding check and handlers for null data responses

This is a temp patch, we need to refactor this later, just making sure we don't error out of response is undefined.

cc @jmctradeshift