text/template: improve error reporting for executing an empty template
Fixes issue 4522.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7502044