Added checking on checkProgress() as listener becomes null when the user clicks on the refresh button and progress is already finished. Submitted By: Teodoro Cue