I would think something like

/cast Fire Nova
/cast Chain Lightning

may work, since if there's a fire totem active then it would do a nova. The only thing I can think that would make it not work was the fact you get an error when there's not a fire totem out, so it may stop the macro.