message: Extend check for undefined results
  (fixes
diff: @@ -31,7 +31,7 @@ exports.queryResultToJson = function (data, status) {
  } else if (data.length > 0) {
  wrappedData = []
  for (var i = 0; i < data.length; i++) {
  - wrappedData.push(data[i].dataValues ? data[i].dataValues : data[i])
  + wrappedData.push(data[i] && data[i].dataValues ? data[i].dataValues : data[i])
  }
  } else {
  wrappedData = data
  