Fix NuGet/NuGetGallery#2287 - indexing issue with listed flag

Fixes NuGet/NuGetGallery#2287