Handle null in getJSON for path.