Patch Set 5: I would prefer that you didn't submit this

OK, now NPE did not occur. But when I hit 'cancel' synchronize operation is marked as 'canceled' but it finish what it should done and even displays proper result. Therefore it seams that this change isn't work properly.