I would recommend against getting a massage when you have a cold due to the fact that your immune system is already compromised with fighting the virus. Why would you want to have the massage release additional toxins from your muscles into your system thus adding a double-compromise and forcing your immune system to work even harder? IMO, not advisable.
Is it safe? That's relative, depending on what you consider "safe".