fixes #1943
Merge pull request #1990 from dotCMS/issue-1943-repushing-folder-failing

fixes #1943