allow null templates. fixes #30
Merge pull request #34 from bobholt/fix30

allow null templates. fixes #30