This patch fixes a bug where users could not create new keywords because of an error during the color generation.