Fixes Flask errors re: old server-side templates.