Fixes #3 - Wrong progress bar state when ticket has no attachments.

When the total number of attachments was 0, the progress bar was not updated
and remained in an undefined state forever. Now, in this case, we set the
progress property to a correct value.