console.log should handle large objects and null/undefined input