fix error template rendering bugs

 On branch master

	modified:   lib/webserver/index.js