Stolen from this Message Board Thread.
- Right click on your orphaned template
 - Select "Remove from Inventory"
 - From the host you would like the template to reside on...
 - Select you host
 - Select the "Configuration" tab
 - Select "Storage" under the Hardware pane
 - Double click on the storage device in the right pane..this will bring up the "Datastore Browser"
 - Browse to your orphaned template's location
 - Right click on the template file..it will have a ".vmtx" extention with the Type displayed as "Template VM"
 - Choose "Add to Inventory"
 - Go through and answer the wizard information to complete the "fix"