Better label color validation, fixes #7454