Check network before processNextQueueItem

@aaustin