Fix unique name(in a folder) bug

Modify buildUniqueName method's arguments and logic:
-parent folder ID was not correctly set
-existingId didn't work as intended because Properties has no longer objectId when update