- guard against null and non string arguments passed to console.error