Throw error if the template path doesn't exist