Fixed problems with the metadata query in terms of firing the did-download notification. The problem is, the metadata query never removes results once they are in the set. We have to restart the query if results count is greater than 0, to allow the count to decrease. When it hits zero, we fire out notif.