When template file is empty (0 size), use an empty string as template.
Merge pull request #27 from robertklep/master

Empty template files cause invalid Javascript