Merge pull request #6099 from dumganhar/develop

Fixed copying resource fails in empty-lua-test.