Fixes: U4-3493 Cannot delete a template with children