Avoid spurious fetch of illegal URL during template parsing.

Happens from template code like <img src={{foo}}>, which causes a GET of "{{foo}}",
at least on Chrome.

Fixes #260.