Fix ToString for null and undefined