LPS-46553 After upgrade to 6.2, Liferay Sync has problems when DL contains preexisting documents with reserved names

LPS-46553 After upgrade to 6.2, Liferay Sync has problems when DL contains preexisting documents with reserved names.

This pull request depends on changes made by following pull: https://github.com/sergiogonzalez/liferay-portal/pull/1383