Fix null error when clicking selected color in ColorPicker