fixes #3321 Problems when you rename a file with an existing name
fixes #3321 Problems when you rename a file with an existing name
Merge pull request #3370 from dotCMS/issue-3321-problems-when-you-rename-file-with-an-existing-name

fixes #3321 Problems when you rename a file with an existing name