Fixes #152: Add check for custom template option in template method