Fixed copying resource fails in empty-lua-test.