Handle file size 0 when calculating percentages

Set percentage done to 100% to prevent division by 0 exception