color_apply_icc_profile: add checks on the number of components (#1236)