title: Spotify Related Artist Outputs Undefined names
body: <p>I'm trying to get a list of related artists but am returning mixed results. Sometimes the name of the related artist will appear and sometimes it will return "undefined". </p>
  
  <p>How do I retrieve the names of all the related artists without getting an "undefined" result?</p>
  
  <pre><code>       models.Artist
            .fromURI('spotify:artist:7hJcb9fa4alzcOq3EaNPoG')
            .load(artist_properties)
            .done(function(artist){
  
              artist.related.snapshot().done(function(r){
  
                var relatedArtists = r.toArray();
                var relatedArtistsNames = [];
                var i;
  
                for(i = 0; i &lt; relatedArtists.length; i++){
                  var listItem = document.createElement("li");
                  listItem.innerHTML = relatedArtists[i].name;
                  $('#relatedContainer').append(listItem);
                }
              });
            });
  </code></pre>
  
  <p>This outputs:</p>
  
  <p><img src="https://i.stack.imgur.com/gXmpw.png" alt="enter image description here"></p>