templates: fix code generation for expressions for observe() callback.
fixes #258
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.