Wrap deferred.defer call for updating package counts in a try catch.

Ignore cases where we can't add the task to the task queue.