libs/web: Fixed a typo in template error handling