Maybe usefull for the people that want a canonical tag in their cms : Conditional canonical link in head custom code - #7 by bart
Because i cant find if its a problem when a canonicaltag is empty ?
But with the technique in the forum link i posted i only have a canonical tag when the cms field is popolated.
Goodluck