Avoid potential 'devision by zero' situation, when chunk_size is not set and queue is restarted in the middle of upload. Address #1067.