safeRgbToRgb = function safeRgbToRgb(rgb) {
  var value = extractRgbSubstring(rgb)
    .split(',')
    .map(function (a) {
      var b = parseInt(a, 10);
      return !isNaN(b) ? b : 0;
    });
  if (value.length >= 3) {
    return [value[0], value[1], value[2]];
  }
  return [0, 0, 255];
}
Returns a three-member number array from a rgb string
@param rgb
@returns {number[]}