Fix when trying to save an array with an empty string