Fix bug whereby task dropping did not drop correct task when queue was filtered by project.