Handle file size 0 when calculating percentages

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