fixes #2326 small tweak when reading resources
Merge pull request #2340 from dotCMS/issue-2326-webdav-copy-lang-file

fixes #2326 small tweak when reading resources