Fix for incorrect template name when throwing missing error