Fix bug in SST where we were occasionally trying to pop from an empty queue. This happened
more often when the server is under load, increasing the chances of five failed retries.