Fixed color palette error

Fixed NPE in color palette when trying to add new color