fetchAndRenderDoc: Read from 'template' chan now guaranteed

If `fetchAndRenderDoc` returns early, its spawned goroutine will stick around forever, waiting for a channel read on `template`. This change guarantees that said read occurs.