This bug was being caused by a race condition where the PackageTableView queries Solr for the package contents but the MetadataIndexView tries to insert the element before the results are retrieved. I added a trigger event to the PackageTableView so other views know when the table is done rendering.