fix possible crash that could happen in UnMkTemplate

Templates can't have empty parents. Those that do used to crash
UnMkTemplate. No more.