RenderTemplateResult: Handle HEAD requests

Fixes #184