Your pet has to finish his previous cast in order to cast contagion. You can put him in passive mode just before using contagion so it goes "instantly".

Same with Enkindle... except if you use contagion followed directly by Ekindle => your pet will never cast his "ultimate" and Enkindle will be in CD