Fix 0.8.2 support

this.__templateName is only available from v0.8.3