fix: error when embedding is loaded with models using llama_template (#14744)