Fixed crash if you add no color in the ColorPickerDialog