Fixed implementation of TemplateHookRegistry's hash function.