Check if progress block is nil before calling it.