Fixes bugs that caused unknown clients and kinds to crash template
assignment endpoint

[#82248730]