main.js: fix regression in _logStack