Fix leak on failed mustache templates