Nope it's not a glitch, offers of color changes are completely random, it doesn't detect what color your pet already is.
For future reference, you can switch your selected pet (use another tab if you need to get one out of the showroom or something) and use the color change on a different one instead. As long as the pet you switch to is not CS, mutant, or Uldavian, the color change will work.