Fixed progress under Cocoa which always cancelled the job

Yeah, it's funny, same problem as with Qt, but for different reasons.