Prevent NPE on missing templates

When the requested template is missing, a NullPointerException is thrown and
the rest of templates are not rendered. This commit fixes the bug.
Polish in general
Merge pull request #97 from wookayin/patch-1

Prevent NPE on missing templates and Polish