Zero length blocks

Don't write empty variables when expanding a package template.