Fix for #1143

Fixes issue #1143, comes with  a test case for both Mustache & Stache helpers.