BZ-9072: safe call to console.log