Handle file size 0 when calculating percentages

Return percentage done as 100% when file size is 0 (to prevent zero
division by zero)