Fixing check for console.log in Mustache and Stache `log` helpers

Fixes #797