fix possible crash that could happen in UnMkTemplate

Templates can't have empty parents. Those that do used to crash
UnMkTemplate. No more.
Merge pull request #6 from densh/topic/fix-no-parents-unmktemplate

fix possible crash that could happen in UnMkTemplate