Avoid 'superclass mismatch for class HandlebarsTemplate' error