main.js: fix regression in _logTrace

introduced by commit fa1db361