Adding the event listener, as shown immediatly above, allows me to sample the data with some assurance that it has indeed been loaded. In my initial problem, I was apparently sampling the data before the data had time to be completely uploaded and so I got null values for various attributes.