Handle undefined argument in console.log