Fix crash when using the template-tool

The template tool crashes when used on anything - as it is craftable, this may not be so convenient on a public server.