Split a string by a comma and return an empty array on error